# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-typing_inspect
_pkgname=typing_inspect
pkgver=0.7.1
pkgrel=2
pkgdesc="Defines an API for runtime inspection of types defined in the Python standard typing module"
url="https://github.com/ilevkivskyi/typing_inspect"
arch="all"
license="MIT"
depends="python3 py3-mypy-extensions py3-typing-extensions"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="typing_inspect-$pkgver.tar.gz::https://github.com/ilevkivskyi/typing_inspect/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest \
		--deselect test_typing_inspect.py::GetUtilityTestCase::test_typed_dict_typing_extension
	# https://github.com/ilevkivskyi/typing_inspect/issues/84
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
f934d2c4a131a11e61c0fd4a2b095015f29f5cba6edf2240cc2fca81c1d8b2fc26ccf4f5ef7342d093f924f08a68c1c2490780200d843f35a90e5c461ac3304b  typing_inspect-0.7.1.tar.gz
"
